using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public class GridScrollBoxTestItem : GridScrollBoxItem
{
    [SerializeField] private TextMeshProUGUI m_NameText;
    
    public override void OnRefresh(object itemData)
    {
        string name = itemData as string;
        m_NameText.text = name;

        gameObject.name = name;
        print($"refresh {name}");
    }
}
